<script>
  const type = "availability-result";
  navigator.geolocation.getCurrentPosition(
    () => {
      window.parent.postMessage({ type, enabled: true }, "*");
    },
    () => {
      window.parent.postMessage({ type, enabled: false }, "*");
    }
  );
</script>
